package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.TempleAnswerGetTask.TempleAnswerGetRequest;
import com.smiier.skin.net.TempleAnswerGetTask.TempleAnswerGetResponse;
import com.smiier.skin.net.entity.Answer;
import com.smiier.skin.util.GlobalSettings;

/**
 * 获取模板
 * 
 * @author 杨文华
 * 
 */
public class TempleAnswerGetTask extends
		NetTask<TempleAnswerGetRequest, TempleAnswerGetResponse> {

	public static class TempleAnswerGetRequest extends ORequest {
		public ArrayList<Long> taids;
		public String appname = Constant.APP_NAME;
	}

	public static class TempleAnswerGetResponse extends OResponse {
		public ArrayList<TempleAnswer> Res;
	}

	public static class TempleAnswer implements INoProguard {
		public Long Key;
		public Answer Value;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Temple.Answer.Get";
		mRequestMethod = METHOD_GET;
	}
}
